package com.pangzhao.ascii;

/**
 * 字符转换成ascii码
 */
public class CharToAscii {

    public static void main(String[] args) {
        char a = 'A';
        int b = a;
        // 打印ascii码
        System.out.println(b);
    }
}
